//一般情况不要动
import {Suspense} from 'react'
import {useRoutes} from 'react-router-dom'
import routes from './router/index'
let App=()=>{
  let routerView=useRoutes(routes)
  return (
    <>
    <Suspense fallback={<div>loading...</div>}>
      {routerView}
    </Suspense>
      
    </>
  )
}

export default App